package com.yjc.drygoods.member.feign;

import com.yjc.common.to.CouponAndMemberTo;
import com.yjc.common.to.CouponTo;
import com.yjc.common.utils.R;
import com.yjc.common.vo.MemberRespVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author yjc
 * @create 2022-08-20 16:55
 */
@FeignClient("drygoods-coupon")
public interface CouponFeignService {
    @GetMapping("/coupon/coupon/many/list")
    public R manyCoupon();

    @GetMapping("/coupon/couponhistory/get/coupon/byMmeberId")
    R getCouponByMemberId(@RequestParam("memberId") Long memberId);

    @PostMapping("/coupon/couponhistory/save/couponHistory")
    public R saveCouponHistory(@RequestBody CouponAndMemberTo couponAndMemberTo);
}
